<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly ="Ngilead.Test.Resources" namespace="Ngilead.Test.Models.Stateless">
  <class name="Group" table="groups">
    <id name="Id" column="idgroup" type="System.Int64">
      <generator class="native"/>
    </id>
    <version name="Version"     column="version"      type="System.Int32"/>    
		<property name="Name"       column="name"         type="System.String"      length="255"      not-null="true"/>
    
		<bag name="Members"         table="user_group" 		inverse="true"            cascade="save-update,delete-orphan">
			<key column="idgroup" />
			<many-to-many class="User" column="iduser" />
		</bag>		
	</class>
</hibernate-mapping>
